package com.jiuan.demo.api;

import com.google.gson.JsonElement;
import com.jiuan.demo.model.http.User;
import com.jiuan.demo.model.http.request.Header;
import com.jiuan.demo.model.http.response.BaseResponseResult;
import com.jiuan.retrofit.annotation.ApiVersion;
import com.jiuan.retrofit.annotation.CacheMode;
import com.jiuan.retrofit.annotation.DynamicClassQuery;
import com.jiuan.retrofit.annotation.LoadMode;
import com.jiuan.retrofit.annotation.SC;
import com.jiuan.retrofit.annotation.SV;
import com.jiuan.retrofit.model.CachePolicy;
import com.jiuan.retrofit.model.LoadPolicy;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

@ApiVersion(2008009)
@SC("001cfe2fe7044aa691d4e6eff9bfb56c")
@DynamicClassQuery(Header.class)
@CacheMode(CachePolicy.CACHE)
public interface ApiService {

    @POST("phone_login")
    @SV("3898b37f5496439aba668aa980505e4b")
    @FormUrlEncoded
    @LoadMode(LoadPolicy.LOCAL)
    Call<BaseResponseResult<JsonElement>> login(@Field("Phone") String phone, @Field("Password") String password);
}
